<?php
//'配置项'=>'配置值'
return array(
    'MAIL_ADDRESS' => '18651940346@163.com', // 邮箱地址
    'MAIL_LOGINNAME'=>'18651940346@163.com', // 邮箱登录帐号
    'MAIL_SMTP'=>'smtp.163.com', // 邮箱SMTP服务器
    'MAIL_PASSWORD'=>'520609tsy', // 邮箱密码





    'config_qiniu' => array(
        'accessKey' => 'W58W7P8XxEqF3ocM3WmOiQ0rBqXWCKO5pSQ1b3mx', //这里填七牛AK
        'secretKey' => '6c7nusX4tyyb45rGgylXwKXVRai60yLC7mFnKWoi', //这里填七牛SK
        'domain' => 'wechatpic.7rose.cn',//这里是域名
        'bucket' => 'rose-allow',//这里是七牛中的“空间”
        'timeout'=>3600,
    ),
    'config' => array(
        'maxSize' => 500*1024*1024,
        'rootPath' => './Uploads/',
        'savePath' => '',
        'saveName' => array('uniqid',''),
        'exts' => array('jpg', 'gif', 'png', 'jpeg'),
        'autoSub' => true,
        'subName' => array('date','Ymd'),
    ),





/* 数据库设置 */
    'DB_TYPE'=>'mysql',
    'DB_HOST'=>'120.132.27.217',
    'DB_NAME'=>'freedom',
    'DB_USER'=>'test',
    'DB_PWD'=>'Test2015!',
    'DB_PORT'=>'3306',
    'DB_PREFIX'=>'free_',
    'DB_CHARSET' => 'utf8', // 字符集
    'DB_DEBUG' => true,
    'MODULE_ALLOW_LIST' => array(
        'Home',
        'Admin',
        'Api',
        'Vue',
    ),

//
//    //七牛上传文件设置
//    'PICTURE_UPLOAD_DRIVER'=>'Qiniu',
//    //本地上传文件驱动配置
//    'UPLOAD_LOCAL_CONFIG'=>array(),
//    'UPLOAD_QINIU_CONFIG'=>array(
//        'accessKey'=>'l3N4q0XCqm0rssaaMTHryZYG-LnKMH',
//        'secrectKey'=>'7qPVaeRasasan2TjALqQAjF0h6jOt0D1jF',
//        'bucket'=>'yaasasnbao',
//        'domain'=>'7xasssa.com2.z0.glb.qiniucdn.com',
//        'timeout'=>3600,
//    ),


    define('APP_DEBUG',true),
    'SHOW_PAGE_TRACE' =>false,
    '__ROOT__'      =>  $_SERVER['HTTP_HOST'],       // 当前网站地址
    '__APP__'       =>  __APP__,        // 当前项目地址
    '__SELF__'      =>  __SELF__,       // 当前页面地址
    '__PUBLIC__'    =>  __ROOT__.'/Public',// 站点公共目录

    'LOG_LEVEL'  =>'EMERG,ALERT,CRIT,ERR',
    'DEFAULT_GROUP' => 'Home,Mobile',
    'URL_MODEL' => 2,
    // 'TMPL_EXCEPTION_FILE' => './Application/Home/View/Public/404.html',//./Application/Home/View/Public/404.html
    'LOAD_EXT_FILE' => 'common',
    'LANG_SWITCH_ON' => false, // 开启语言包功能

    'URL_CASE_INSENSITIVE' => true, //true 不区分大小写
    'LANG_LIST' => 'zh,en,jp', // 允许切换的语言列表 用逗号分隔
    'VAR_LANGUAGE' => 'l', // 默认语言切换变量
    'DEFAULT_LANG' => 'zh',

    'FILE_UPLOAD_CONFIG'=>array(
        'mimes' => '', //允许上传的文件MiMe类型
        'maxSize' => 6 * 1024 * 1024, //上传的文件大小限制 (0-不做限制)
        'exts' => array('jpg', 'gif', 'png', 'jpeg'),// 设置附件上传类型
        'autoSub' => true, //自动子目录保存文件
        'subName' => array('date', 'Y-m-d'), //子目录创建方式，[0]-函数名，[1]-参数，多个参数使用数组
        'rootPath' => './Uploads/', //保存根路径
        'savePath' => '', //保存路径
        'saveName'   =>    array('uniqid',''),
    ),

);


